package com.dm.client;

import com.dm.config.DmConfiguration;
import com.dm.fallback.DmBaseeAreaClientFallBack;
import com.dm.pojo.DmBaseeArea;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
* Feign
*/
@FeignClient(name = "dm-base-provider", configuration = DmConfiguration.class, fallback = DmBaseeAreaClientFallBack.class)
public interface DmBaseeAreaClient {
@RequestMapping(value = "/getDmBaseeAreaById",method = RequestMethod.POST)
public DmBaseeArea getDmBaseeAreaById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getDmBaseeAreaListByMap",method = RequestMethod.POST)
public List<DmBaseeArea>	getDmBaseeAreaListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getDmBaseeAreaCountByMap",method = RequestMethod.POST)
public Integer getDmBaseeAreaCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddDmBaseeArea",method = RequestMethod.POST)
public Integer qdtxAddDmBaseeArea(@RequestBody DmBaseeArea dmBaseeArea)throws Exception;

@RequestMapping(value = "/qdtxModifyDmBaseeArea",method = RequestMethod.POST)
public Integer qdtxModifyDmBaseeArea(@RequestBody DmBaseeArea dmBaseeArea)throws Exception;
}

